<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-uid" data-rule="required1" min="0" data-source="user/user/index" data-field="nickname" data-search-field="nickname,phone" data-primary-key="uid" class="form-control selectpage" name="row[uid]" type="text" value="{:isset($row->user) ? $row.uid : ''}">
        </div>
    </div>

	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Customer_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_id" data-rule="required1" data-source="facrm/customer/index" data-field="name" data-search-field="name,mobile" class="form-control selectpage" name="row[customer_id]" type="text" value="{:isset($row->customer) ? $row.customer_id : ''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contact_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_id" data-rule="required1" data-source="facrm/customer/contacts" data-field="name" data-search-field="name,mobile" class="form-control selectpage" name="row[contact_id]" type="text" value="{:isset($row->contact) ? $row.contact_id : ''}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_id" class="form-control" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_days')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_days" data-rule="required" class="form-control" name="row[service_days]" type="number" value="{$row.service_days|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[start_time]" type="text" value="{:$row.start_time?datetime($row.start_time):''}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[end_time]" type="text" value="{:$row.end_time?datetime($row.end_time):''}" readonly>
        </div>
    </div>
<!--    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_memory')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_memory" data-rule="required" class="form-control selectpicker" name="row[is_memory]">
                {foreach name="isMemoryList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_memory"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
